<?php 
class ArcController{
	private $db;
	public function __construct(){
		$this->db = include "./data.php";
	}
	public function add(){
		$this->db[]=$_POST;
		$phpCode="<?php return ".var_export($this->db,true)."?>";
		file_put_contents("./data.php", $phpCode);
		echo json_encode($_POST);
	}
}
 ?>